class Content {
    def static STATUS_DELETED = -1
    def static STATUS_PENDING = 0
    def static STATUS_ACTIVE = 1
    Date      dateCreated
    Date      lastUpdated
    String    body
    String    title
        
    Integer   status =  STATUS_ACTIVE


    static hasMany=[comments:Comment]
    static belongsTo=[createdBy:Person]

    static constraints={
        body(blank:false,widget:'textarea', maxSize:15000)
        title(blank:false)
    }

}
